package com.androidx.p013lv.mine.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import com.androidx.p013lv.mine.C1206BR;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.activity.AccountCredentialsActivity;
import com.androidx.p013lv.mine.generated.callback.OnClickListener;

/* renamed from: com.androidx.lv.mine.databinding.a */
public class ActivityAccountCredentialsLayoutBindingImpl extends ActivityAccountCredentialsLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback62;
    private final View.OnClickListener mCallback63;
    private long mDirtyFlags;
    private final TextView mboundView1;
    private final ImageView mboundView2;

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        return false;
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C1207R.C1210id.toolbar, 3);
        sViewsWithIds.put(C1207R.C1210id.iv_title, 4);
        sViewsWithIds.put(C1207R.C1210id.f259b, 5);
        sViewsWithIds.put(C1207R.C1210id.tv_url, 6);
    }

    public ActivityAccountCredentialsLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 7, sIncludes, sViewsWithIds));
    }

    private ActivityAccountCredentialsLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 0, (ImageView) objArr[5], (ImageView) objArr[4], (LinearLayout) objArr[0], (Toolbar) objArr[3], (TextView) objArr[6]);
        this.mDirtyFlags = -1;
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        ImageView imageView = (ImageView) objArr[2];
        this.mboundView2 = imageView;
        imageView.setTag(null);
        this.rootView.setTag(null);
        setRootTag(view);
        this.mCallback63 = new OnClickListener(this, 2);
        this.mCallback62 = new OnClickListener(this, 1);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 4;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C1206BR.title == i) {
            setTitle((String) obj);
        } else if (C1206BR.click != i) {
            return false;
        } else {
            setClick((AccountCredentialsActivity.OnClick) obj);
        }
        return true;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityAccountCredentialsLayoutBinding
    public void setTitle(String str) {
        this.mTitle = str;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C1206BR.title);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityAccountCredentialsLayoutBinding
    public void setClick(AccountCredentialsActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C1206BR.click);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        String str = null;
        String str2 = this.mTitle;
        AccountCredentialsActivity.OnClick onClick = this.mClick;
        long j2 = j & 5;
        boolean z = false;
        if (j2 != 0) {
            if (str2 == null) {
                z = true;
            }
            if (j2 != 0) {
                j |= z ? 16 : 8;
            }
        }
        long j3 = 5 & j;
        if (j3 != 0) {
            str = z ? "返回" : str2;
        }
        if ((j & 4) != 0) {
            this.mboundView1.setOnClickListener(this.mCallback62);
            this.mboundView2.setOnClickListener(this.mCallback63);
        }
        if (j3 != 0) {
            TextViewBindingAdapter.setText(this.mboundView1, str);
        }
    }

    @Override // com.androidx.p013lv.mine.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            AccountCredentialsActivity.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.btnBack();
            }
        } else if (i == 2) {
            AccountCredentialsActivity.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.saveAccCredentials();
            }
        }
    }
}
